using System;
using Tools.Domain.Specifications;
using Webshop20.Domain.Reporting.Core;

namespace Webshop20.Domain.Reporting.Core
{
    public class OrderWithinSpecification : Specification<Order>
    {
        public DateTime MinumDate { get; set; }
        public DateTime MaximumDate { get; set; }

        public OrderWithinSpecification(DateTime minimumDate, DateTime maximumDate) 
            : base(x=> minimumDate <= x.Date  && x.Date <= maximumDate, "")
        {
            MinumDate = minimumDate;
            MaximumDate = maximumDate;
        }
    }
}